package com.houtai.dao;

import com.houtai.bean.TdActivityApply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface TdActivityApplyDao {
    /**
     * @Purpose:    添加报名记录
     * @param:      tdActivityApply
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/21
     * @return:     void
     */
    void insertTdActivityApply(TdActivityApply tdActivityApply);

    /**
     * @Purpose:    查找用户是否报名过
     * @param:      user_id
     * @Version:    1.0
     * @Author:     li
     * @time:       2019/8/26
     * @return:     TdActivityApply
     */
    TdActivityApply findTdActivityApplyId(@Param("user_id") int user_id, @Param("activity_id") int activity_id);
}
